package com.hnichr.ump.autoconfigure.ecard;

import com.hnichr.ump.common.Constant;
import com.hnichr.ump.common.vo.ModuleVO;
import com.hnichr.ump.ecard.EcardConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@ConditionalOnClass(EcardConfiguration.class)
@Import(EcardConfiguration.class)
@Slf4j
public class EcardAutoConfiguration {

	public EcardAutoConfiguration() {
		log.info("[AutoConfiguration==>]:Ecard Module Loading");
		Constant.addModule(new ModuleVO("Ecard","电子名片模块"));
	}
}
